import Vue from 'vue'

export default {
    fetch: () => Vue.http.get('get_cart'),
    delete: (cart_id) => Vue.http.delete('delete_cart', { cart_id }),
    updateQty: (cart_id, qty) => Vue.http.post('update_cart_qty', { cart_id, qty }),
    addLine: (product_id, qty) => Vue.http.post('add_cart_line', { product_id, qty }),
}
